package org.example;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {
  @Resource
    UserDao userDao;
    public void save(User user){
        System.out.println("UserService.save()");
        userDao.save(user);
        System.out.println("从UserService返回");
    }
}
